package com.jvm.oom;

public class JVMStackOF {
	private int stackLength=1;
	public void stackLeak(){
		stackLength++;
		stackLeak();
	}
	public static void main(String[] args) {
		JVMStackOF oom=new JVMStackOF();
		try {
			oom.stackLeak();
		} catch (Throwable e) {
			System.out.println("stack length "+oom.stackLength);
			throw e;
		}
	}
}
